package com.products.gui;

import java.util.List;
import com.products.dao.Commands;
import com.products.model.Product;
import com.products.utils.SimpleMail;



public class main {
	private Commands commands = new Commands();
	private List<Product> products = null;
        private SimpleMail SimpleMail = new SimpleMail();
	
        public void run() {
                String respEmail = getCommands().getMail();
                SimpleMail.Send(getProducts(), respEmail);
                getCommands().removeOrder();
	}
        
	public List<Product> getProducts(){
		return commands.getList();
	}
	
	public Commands getCommands(){
		return commands;
	}
        
        
}
